package cn.gok.springboot.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 陈少华
 * @create 2022-07-14 10:53
 **/

@Component("teacher")
//注册到spring容器
@Data
//相当于自动生成set、get、hashcode、equals、tostring
//无参、满参的构造方法
@NoArgsConstructor
@AllArgsConstructor
public class Teacher {
    private  int age;
    private  String name;
}
